Add(TKey,TValue) Method

Summary

Adds an element with the provided key and value to the IDictionary.

Syntax
C#
VB
C++
public virtual void Add( 
   TKey key, 
   TValue value 
) 
  
Public Overloads Overridable Sub Add( _ 
   ByVal key As TKey, _ 
   ByVal value As TValue _ 
)  
public: 
virtual void Add(  
   TKey^ key, 
   TValue^ value 
)  

Parameters

key
The object to use as the key of the element to add.

value
The object to use as the value of the element to add.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionkey is null.
System.ArgumentExceptionAn element with the same key already exists in the IDictionary.
System.NotSupportedExceptionThe IDictionary is read-only.

Requirements

Target Platforms

Help Version 20.0.2020.5.27
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly